<?php defined('DOCMS_VERSION') or exit('Access Denied');?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?=L('jump')?> <?=L('notice')?></title>
<style>
html,body { margin: 0; padding: 0; background-color: #fff; font-family: Microsoft YaHei,Verdana, Geneva, sans-serif; color:#333; }
.msg { width:600px; padding:20px; margin:auto; position:absolute; left:50%; top:50%; margin-top:-130px; margin-left:-320px; background-color:#eee; font-size:14px;}
.msg h2 { font-size:18px;}
a { color:#333;}
</style>
</head>
<body>
    <div class="msg">

        <h2><?=L('skipping')?></h2>
        <p>
        <?= $message ?>
        <b id="wait"><?= $waitSecond ?></b> <?=L('second_later')?><a id="href" href="<?= $url ?>"> <?=L('jump')?></a>
        </p>
    </div>
</body>
<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
    var time = --wait.innerHTML;
    if(time <= 0) {
        location.href = href;
        clearInterval(interval);
    };
}, 1000);
})();
</script>
</html>
